package cn.ecut.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 扩展SpringMVC
 * 增加 或 修改  springMVC配置
 */
//@EnableWebMvc 不需要加  条件注解
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {
    /**
     * 视图跳转
     * 隐藏url
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/hu").setViewName("client");//转发
//        registry.addViewController("/main.html").setViewName("client");
    }


}


